package com.ys.http.network;


import io.reactivex.rxjava3.core.Observer;
import io.reactivex.rxjava3.disposables.Disposable;

public abstract class Callback<T> implements Observer<T> {


    @Override
    public void onSubscribe(Disposable d) {

    }

    @Override
    public void onNext(T data) {
        onSuccess(data);
    }

    public abstract void onSuccess(T t);


    @Override
    public void onComplete() {

    }
}
